package cn.yunhe.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 回帖实体类
 * 
 * @author chen
 *
 */
public class Reply {
	private int id; // 回帖id
	private String content;// 回帖 内容
	private String createTime;// 回帖时间
	private User user;
	private Topic topic;
	private int ParentId;
	//private List<Reply>list=new ArrayList<Reply>();
	public Reply() {
		super();
	}

	public Reply(String content, String createTime, User user, Topic topic ) {
		super();
		this.content = content;
		this.createTime = createTime;
		this.user = user;
		this.topic = topic;
	}
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public int getParentId() {
		return ParentId;
	}

	public void setParentId(int parentId) {
		ParentId = parentId;
	}

	public Reply(String content, String createTime, User user, Topic topic, int parentId) {
		super();
		this.content = content;
		this.createTime = createTime;
		this.user = user;
		this.topic = topic;
		ParentId = parentId;
	}

	@Override
	public String toString() {
		return "Reply [id=" + id + ", content=" + content + ", createTime=" + createTime + ", user=" + user + ", topic="
				+ topic + ", ParentId=" + ParentId + "]";
	}
	

}
